
// 常量

import { WeaTop, WeaRightMenu, WeaTab, WeaLocaleProvider, WeaDialog, WeaFormItem, WeaSearchGroup } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

const fieldArray = [{
  key: "id",
  label: "id",
  hide: true
}, {
  key: "em_name",
  label: getLabel(388207, "移动平台名称"),
  otherParams: {
    helpfulTip: getLabel(388207, "移动平台名称")
  }
}, {
  key: "em_url",
  label: getLabel(388239, "移动平台接口地址"),
  otherParams: {
    helpfulTip: getLabel(388239, "移动平台接口地址")
  }
}, {
  key: "oa_name",
  label: getLabel(388240, "OA系统名称"),
  otherParams: {
    helpfulTip: getLabel(388240, "OA系统名称")
  }
}, {
  key: "oa_address",
  label: getLabel(388242, "OA接口地址"),
  otherParams: {
    helpfulTip: getLabel(388242, "OA接口地址")
  }
}, {
  key: "corp_id",
  label: getLabel(388243, "企业CorpID"),
  otherParams: {
    helpfulTip: getLabel(388244, "企业CorpID")
  }
}, {
  key: "remark",
  label: getLabel(388243, "备注"),
  otherParams: {
    helpfulTip: getLabel(388244, "备注")
  }
}];
const items = fieldArray.map(item => ({
  "colSpan": 2,
  "conditionType": "INPUT",
  "rules": "required",
  "domkey": [
    item.key
  ],
  "hide": item.hide || false,
  "fieldcol": 12,
  "isQuickSearch": true,
  "label": item.label,
  "labelcol": 6,
  "viewAttr": 3,
  otherParams: item.otherParams || {}
}))

items[6].conditionType = 'TEXTAREA';
items.push({
  "colSpan": 2,
  "fieldcol": 12,
  "labelcol": 6,
  "conditionType": "SCOPE",
  "domkey": [
    "seclevel",
    "seclevelTo"
  ],
  "endValue": 100,
  "isQuickSearch": false,
  "label": "安全级别",
  "startValue": "0",
  "viewAttr": 3,
  "precision": 0,
  "min": [
    0,
    10
  ],
  "max": [
    10,
    1000
  ]
});
items.push({
  "colSpan": 2,
  "fieldcol": 12,
  "labelcol": 6,
  "conditionType": "TIMERANGEPICKER",
  "domkey": [
    "seclevel11113231",
    "seclevelTowww333"
  ],
  "label": "时间区间",
  "viewAttr": 3,
  "rules": "required"
});
items.push({
  "colSpan": 2,
  "conditionType": "SWITCH",
  "domkey": [
    "column_0_11"
  ],
  "fieldcol": 12,
  "isQuickSearch": false,
  "label": "switch框",
  "labelcol": 6,
  "viewAttr": 2
})
items.push({
  "colSpan": 2,
  "conditionType": "SELECT",
  "domkey": [
    "column_0_13"
  ],
  "fieldcol": 12,
  "isQuickSearch": false,
  "label": "选择框",
  "labelcol": 6,
  "options": [
    {
      "key": "0",
      "selected": false,
      "showname": "A111111"
    },
    {
      "key": "1",
      "selected": false,
      "showname": "B111"
    },
    {
      "key": "0",
      "selected": false,
      "showname": "A"
    },
    {
      "key": "1",
      "selected": false,
      "showname": "B123"
    },
    {
      "key": "0",
      "selected": false,
      "showname": "Aada"
    },
    {
      "key": "3",
      "selected": false,
      "showname": "Basd"
    },
    {
      "key": "5",
      "selected": false,
      "showname": "Aasd"
    },
    {
      "key": "7",
      "selected": false,
      "showname": "B"
    },
    {
      "key": "8",
      "selected": false,
      "showname": "aA"
    },
    {
      "key": "11",
      "selected": false,
      "showname": "Bdc"
    },
    {
      "key": "230",
      "selected": false,
      "showname": "Aasd"
    },
    {
      "key": "111",
      "selected": false,
      "showname": "123B"
    },
    {
      "key": "11",
      "selected": false,
      "showname": "Bdc"
    },
    {
      "key": "230111",
      "selected": false,
      "showname": "Aasd11"
    },
    {
      "key": "111111",
      "selected": false,
      "showname": "123111B"
    },
    {
      "key": "1dsdsd1",
      "selected": false,
      "showname": "asdasd"
    },
    {
      "key": "23zxczczc0",
      "selected": false,
      "showname": "zxczczxcz"
    },
    {
      "key": "asdadasdasdad",
      "selected": false,
      "showname": " vccsdfcadas"
    }
  ],
  "viewAttr": 2
})
items.push({
  "browserConditionParam": {
    "completeParams": {},
    "conditionDataParams": {},
    "dataParams": {},
    "destDataParams": {},
    "hasAddBtn": false,
    "hasAdvanceSerach": true,
    "idSeparator": ",",
    "isAutoComplete": 1,
    "isDetail": 0,
    "isMultCheckbox": false,
    "isSingle": true,
    "linkUrl": "/hrm/resource/HrmResource.jsp?id=",
    "pageSize": 10,
    "quickSearchName": "",
    "replaceDatas": [],
    "title": "人力资源",
    "type": "1",
    "viewAttr": 2
  },
  "colSpan": 2,
  "conditionType": "BROWSER",
  "domkey": [
    "column_0_10"
  ],
  "fieldcol": 12,
  "isQuickSearch": false,
  "label": "浏览框",
  "labelcol": 6,
  "viewAttr": 2
})

const ITEMS = items;

export {
  ITEMS
}
